company={'BOSS':'唐僧','CTO':'悟空','CFO':'八戒','搬砖':'沙僧','苦力':'白龙马'}
print(company.get('CTO'))
print(company.get('BOSS'))
for fellow in company:
    print("{0}是{1}".format(fellow,company.get(fellow)))
while True:
    person=(input("请输入人物名（输入#q退出查询）："))
    if person == '#q': break
    if person in company.values():
        print("{0}在company".format(person))
    else:
        print("{0}不在company".format(person))